
<%@ page import="dex.micros_gdc.Overtime" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'overtime.label', default: 'Overtime')}" />
		<g:set var="taskEntityName" value="${message(code: 'task.label', default: 'Back Task')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-overtime" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" controller="task" action="list"><g:message code="default.list.label" args="[taskEntityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-overtime" class="content scaffold-list" role="main">
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>

						<g:sortableColumn property="teamMember" title="${message(code: 'overtime.teamMember.label', default: 'Team Member')}" />

						<g:sortableColumn property="otDate" title="${message(code: 'overtime.otDate.label', default: 'OT Date')}" />

						<g:sortableColumn property="otHour" title="${message(code: 'overtime.otHour.label', default: 'OT Hour')}" />

						<g:sortableColumn property="comments" title="${message(code: 'overtime.comments.label', default: 'Comments')}" />

						<g:sortableColumn property="closedFlag" title="${message(code: 'overtime.closedFlag.label', default: 'Closed Flag')}" />

					</tr>
				</thead>
				<tbody>
				<g:each in="${overtimeInstanceList}" status="i" var="overtimeInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

						<td><g:link action="show" id="${overtimeInstance.id}">${fieldValue(bean: overtimeInstance, field: "teamMember")}</g:link></td>

						<td><g:formatDate date="${overtimeInstance.otDate}" format="MM/dd/yyyy"/></td>

						<td>${fieldValue(bean: overtimeInstance, field: "otHour")}</td>

						<td>${fieldValue(bean: overtimeInstance, field: "comments")}</td>

						<td>${fieldValue(bean: overtimeInstance, field: "closedFlag")}</td>

					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${overtimeInstanceTotal}" />
			</div>
			<export:formats formats="['excel']"/>
		</div>
	</body>
</html>
